<script type="text/javascript">

$(document).ready(function() {
     
    var sheepItForm = $('#sheepItForm').sheepIt({
        separator: '',
        allowRemoveLast: true,
        allowRemoveCurrent: true,
        allowRemoveAll: true,
        allowAdd: true,
        allowAddN: true,
        maxFormsCount: 10,
        minFormsCount: 0,
        iniFormsCount: 1
    });
 
});

</script>

<div class="grid_12">
<div class="box">
  <div class="header">
  <?php echo $this->Html->image('icons/packs/fugue/16x16/application-form.png',
    array(
    'alt' => "",
    'height' => "16",
    'width' => "16")); ?>
    <h3>Registro de camada de denuncia nacimiento <?php echo $id_nacimiento;?></h3>
    <span></span>
  </div>
  <div class="content">
  <?php echo $this->Form->create('Camada');?>
  <div class="_100">
     <h1>DATOS CAMADA</h1>
  </div>
  <?php 
  echo $this->Form->hidden('fecha', array('value'=>date('Y-m-d')));
  echo $this->Form->hidden('servicio_id', array('value'=>$id_servicio));
  echo $this->Form->hidden('denuncianacimiento_id', array('value'=>$id_nacimiento));
  ?>
  <div class="_50">
  <label>Raza</label>
  <p>
  <?php echo $this->Form->select('raza_id',$razas)?>
  </p>
  </div>
  <div class="_50">
  <label>Variedad</label>
  <p>
  <?php echo $this->Form->text('variedad')?>
  </p>
  </div>
  <div class="_100">
  <label>Tipo de pelo</label>
  <p>
  <?php echo $this->Form->radio('tipospelo_id', $pelos)?>
  </p>
  </div>
  <div class="_50">
   <label>Camada</label>
   <p>
   <?php echo $this->Form->text('camada')?>
   </p>
  </div>
  <div class="_50">
   <label>Lechigada</label>
   <p>
   <?php echo $this->Form->text('lechigada')?>
   </p>
  </div>
  <div class="_50">
   <label>Nro Parto Madre</label>
   <p>
   <?php echo $this->Form->text('numpartomadre')?>
   </p>
  </div>
  <div class="_50">
   <label>Cachorros encontrados con la madre</label>
   <p>
   <?php echo $this->Form->text('cachorrosencontrados')?>
   </p>
  </div>
  <div class="_100">
     <h2>DATOS CACHORROS</h2>
  <p>
    
  <!-- sheepIt Form -->
<div id="sheepItForm">
 
  <!-- Form template-->
  <div id="sheepItForm_template" class="sheep">
  <label for="sheepItForm_#index#_perro">Nombre cachorro <span id="sheepItForm_label"></span></label>
    <?php echo $this->Form->text(null, array('id'=>"sheepItForm_#index#_nombre", 'name'=>"data[Mascota][#index#][nombre]", 'type'=>"text", 'size'=>"15", 'maxlength'=>"10"))?>
    <label for="sheepItForm_#index#_sexo">Sexo <span id="sheepItForm_label"></span></label>
    <?php echo $this->Form->radio(null, $sexo, array('name'=>"data[Mascota][#index#][sexo]"));?>
    <label for="sheepItForm_#index#_color">Color <span id="sheepItForm_label"></span></label>
    <?php echo $this->Form->text(null, array('id'=>"sheepItForm_#index#_color", 'name'=>"data[Mascota][#index#][color]"));?>
    <label for="sheepItForm_#index#_sena">Se&ntilde;as <span id="sheepItForm_label"></span></label>
    <?php echo $this->Form->text(null, array('id'=>"sheepItForm_#index#_sena", 'name'=>"data[Mascota][#index#][senas]"));?>
    <label for="sheepItForm_#index#_obs">Observaciones <span id="sheepItForm_label"></span></label>
    <?php echo $this->Form->textarea(null, array('id'=>"sheepItForm_#index#_observacion", 'name'=>"data[Mascota][#index#][observaciones]"));?>

    <a id="sheepItForm_remove_current">
    <?php echo $this->Html->image('cross.png',array('class'=>'delete'));?>
    </a>
  </div>
  <!-- /Form template-->
   
  <!-- No forms template -->
  <div id="sheepItForm_noforms_template">Sin cachorros</div>
  <!-- /No forms template-->
   
  <!-- Controls -->
  <div id="sheepItForm_controls">
    <div id="sheepItForm_add"><a><span>Insertar otro Cachorro</span></a></div>
    <div id="sheepItForm_remove_last"><a><span>Quitar cachorro</span></a></div>
    <div id="sheepItForm_add_n">
      <input id="sheepItForm_add_n_input" type="text" size="4" />
      <div id="sheepItForm_add_n_button"><a><span>A&ntilde;adir</span></a></div></div>
  </div>
  <!-- /Controls -->
   
</div>
<!-- /sheepIt Form -->
</p>
</div>
<div class="_100">
   <h1>FIRMAS, SELLOS Y OBSERVACIONES</h1>
</div>
<div>
   <h3>Primera inspecci&oacute;n</h3>
</div>
<div class="_25">
   <label>fecha 1ra inspecci&oacute;n</label>
   <p>
   <?php echo $this->Form->date('fechainspeccion1', array('id'=>'date1'));?>
   </p>
</div>
<div class="_25">
   <label>D&iacute;s de nacidos</label>
   <p>
   <?php echo $this->Form->text('diasdenacidos1');?>
   </p>
</div>
<div class="_25">
   <label>
   Observaciones grales. 1ra inspecci&oacute;n(Comisi&oacute;n cr&iacute;)
   </label>
   <p>
   <?php echo $this->Form->textarea('obs_inspeccion1')?>
   </p>
</div>
<div class="_25">
   <label>
  Firma y aclaraci&oacute;n de la firma (Insp.Sub-comisi&oacute;n)
   </label>
   <p>
   <?php echo $this->Form->checkbox('firma_inspector_subcomision_1')?>
   </p>
</div>
<div>
   <h3>Segunda inspecci&oacute;n</h3>
</div>
<!--observaciones segunda inspeccion-->
<div class="_25">
   <label>fecha 2da inspecci&oacute;n</label>
   <p>
   <?php echo $this->Form->date('fechainspeccion2', array('id'=>'date2'));?>
   </p>
</div>
<div class="_25">
   <label>D&iacute;s de nacidos</label>
   <p>
   <?php echo $this->Form->text('diasdenacidos2');?>
   </p>
</div>
<div class="_25">
   <label>
   Observaciones grales. 2da inspecci&oacute;n(Comisi&oacute;n cr&iacute;)
   </label>
   <p>
   <?php echo $this->Form->textarea('obs_inspeccion2')?>
   </p>
</div>
<div class="_25">
   <label>
  Firma y aclaraci&oacute;n de la firma (Insp.Sub-comisi&oacute;n)
   </label>
   <p>
   <?php echo $this->Form->checkbox('firma_inspector_subcomision_2')?>
   </p>
</div>
<div class="_100">
   <label>
  Firma y aclaraci&oacute;n de la firma Prop. criadero
   </label>
   <p>
   <?php echo $this->Form->checkbox('firma_propietario_criadero')?>
   </p>
</div>
<!--fin obs seg. inspeccion-->
<div class="_100">
   <table>
     <tr>
        <td colspan="6">
           Visado por regional
        </td>
     </tr>
     <tr>
        <td>Lugar</td>
        <td colspan="2">
        <?php echo $this->Form->text('lugar');?>
        </td>
        <td colspan="2">Fecha</td>
        <td>
        <?php echo $this->Form->date('fecha', array('id'=>'date'));?>
        </td>
     </tr>
     <tr>
        <td colspan="2">Recibo</td>
        <td colspan="4">
         <?php echo $this->Form->text('recibo');?>
        </td>
     </tr>
     <tr>
        <td>Sello regional</td>
        <td>
        <?php echo $this->Form->checkbox('sello_regional')?>
        </td>
        <td>Firma sub.com.cria</td>
        <td>
        <?php echo $this->Form->checkbox('firma_subcomisioncriaultimo')?>
        </td>
        <td>Firma recetor regional</td>
        <td>
        <?php echo $this->Form->checkbox('firma_recetor_regional')?>
        </td>
     </tr>
   </table>
</div>

  <div class="actions">
     <div class="actions-left">
     <input type="reset" />
     </div>
     <div class="actions-right">
     <?php echo $this->Form->end('Registrar'); ?>
     </div>
  </div>
  </div><!--end of content-->
</div>
</div>